package com.groupnections.shared;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;

public class LiveFeed implements Serializable, Comparable<LiveFeed> {

	@Id
	private Long liveFeedID;

	private Key<Entity> entityFrom;

	private Key<Entity> entityTo;

	private Date liveFeedDate;

	private String entityDescription;

	public LiveFeed() {
	}

	public Long getLiveFeedID() {
		return liveFeedID;
	}

	public void setLiveFeedID(Long liveFeedID) {
		this.liveFeedID = liveFeedID;
	}

	public Key<Entity> getEntityFrom() {
		return entityFrom;
	}

	public void setEntityFrom(Key<Entity> entityFrom) {
		this.entityFrom = entityFrom;
	}

	public Key<Entity> getEntityTo() {
		return entityTo;
	}

	public void setEntityTo(Key<Entity> entityTo) {
		this.entityTo = entityTo;
	}

	public Date getLiveFeedDate() {
		return liveFeedDate;
	}

	public void setLiveFeedDate(Date liveFeedDate) {
		this.liveFeedDate = liveFeedDate;
	}

	public String getEntityDescription() {
		return entityDescription;
	}

	public void setEntityDescription(String entityDescription) {
		this.entityDescription = entityDescription;
	}

	@Override
	public int compareTo(LiveFeed that) {

		return that.liveFeedDate.compareTo(this.liveFeedDate);
	}

}
